package com.design.patterns;

public class test {
    public static void main(String[] args) {
        for (int i =0;i<20;i++){
            Thread t = new Thread(new Runnable() {
                public void run() {
                    Singleton1 s = Singleton1.getSingleton1();
                    System.out.println(Thread.currentThread()+":"+s);
                }
            });
            t.start();
        }


    }
}
